package com.zito.health.service.impl;

import com.zito.health.entity.Area;
import com.zito.health.entity.LaboratoryCredentials;
import com.zito.health.mapper.AreaMapper;
import com.zito.health.mapper.LaboratoryCredentialsMapper;
import com.zito.health.service.AreaService;
import com.zito.health.service.LaboratoryCredentialsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: zxs
 * @time: 2020/5/27 14:43
 */
@Service
public class LaboratoryCredentialsServiceImpl implements LaboratoryCredentialsService {
    @Autowired
    LaboratoryCredentialsMapper laboratoryCredentialsMapper;

    @Override
    public LaboratoryCredentials save(LaboratoryCredentials object) {
        laboratoryCredentialsMapper.insert(object);
        return object;
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void update(LaboratoryCredentials object) {
        laboratoryCredentialsMapper.updateByPrimaryKeySelective(object);

    }

    @Override
    public List<LaboratoryCredentials> query() {
        return null;
    }

    @Override
    public List<LaboratoryCredentials> query(LaboratoryCredentials object) {
        return null;
    }

    @Override
    public LaboratoryCredentials queryOne(LaboratoryCredentials object) {
        return laboratoryCredentialsMapper.selectOne(object);
    }

    @Override
    public LaboratoryCredentials queryById(Integer id) {
        return null;
    }

    @Override
    public boolean exists(Integer id) {
        return false;
    }

    /**
     * 修改实验室证书有效日期
     * @auth sun
     */
    @Override
    public void updateCertificateByLabId(LaboratoryCredentials laboratoryCredentials) {
       laboratoryCredentialsMapper.updateCertificateByLabId(laboratoryCredentials);
    }

}
